|
Base64
- ObjectReaderAgent.class
- Person.class This is
just a support class for the object reader and writer agents.
This example shows how to transport serialized
Java object over an ACLMessage.
.
You can execute it, for instance, with
the following command:
java jade.Boot -platform a1:examples.Base64.ObjectWriterAgent
a2:examples.ex7.ObjectReaderAgent
This agent makes the following task:
1. registers itself
with the df as a reader;
2. waits a message
from its companion, the ObjectWriterAgent;
3. reads the content
of the message, knowing a-priori that it is encoded in Base64 and
contains a Java object;
- ObjectWriterAgent.class
This agent makes the following task:
1. searches in the
DF for an ObjectReaderAgent;
2. sends an ACLMessage
with a content encoded in Base64 to the ObjectReaderAgent.
JADE is a trademark of CSELT. JADE has been developed jointly by CSELT and the Computer Engineering Group of the University of Parma